<!doctype html>
<html class="no-js">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>{$pageInfo.title}</title>
    {load_js('jquery')}
    {load_ui($sysPublic)}
    <link rel="stylesheet" href="{$sysPublic}/topics/css/style.css">
    <script type="text/javascript" src="{$sysPublic}/topics/js/lib.js"></script>
</head>
<body>
<nav class="dux-header">
    <div class="uk-container" uk-navbar>
        <div class=" uk-navbar-left ">
            <a class="uk-navbar-item uk-logo" href="__ROOT__/">
                <img src="{$topicsConfig.info_logo ? $topicsConfig.info_logo : 'https://cdn.duxphp.com/duxjs/images/logo.png'}"
                     height="30px" class="uk-margin-small-right">
                 {$topicsConfig.info_name}
            </a>

            <ul class="uk-navbar-nav">
                <li <!--if{MODULE_NAME == 'Index'}--> class="uk-active" <!--{/if}-->><a
                    href="__ROOT__/">首页</a></li>
                <!--loop{$topicsType as $k => $vo}-->
                <li <!--if{$vo.label == APP_NAME . MODULE_NAME}--> class="uk-active" <!--{/if}-->><a
                    href="{url($vo.list_url)}">{$vo.name}</a></li>
                <!--{/loop}-->
                <!--loop{$topicsMenu as $k => $vo}-->
                <li <!--if{$vo.label == APP_NAME . MODULE_NAME}--> class="uk-active" <!--{/if}-->><a
                    href="{url($vo.url)}">{$vo.name}</a></li>
                <!--{/loop}-->
            </ul>
            <div class="uk-navbar-item">
                <form class="uk-search uk-search-default" action="{url('topics/search/index')}">
                    <span uk-search-icon></span>
                    <input class="uk-search-input" name="keyword" type="search" value="{$_GET['keyword']}" placeholder="输入关键词...">
                </form>
            </div>

        </div>
        <div class="uk-navbar-right">
            <ul class="uk-navbar-nav">
                <!--if{!$userInfo}-->
                <li><a href="{url('topics/Login/index', ['action' => URL])}">登录</a></li>
                <!--{else}-->
                <li>
                    <a href="javascript:;">发表</a>
                    <div class="uk-navbar-dropdown">
                        <ul class="uk-nav uk-navbar-dropdown-nav">
                            <!--loop{$topicsType as $vo}-->
                            <li><a href="{url($vo.post_url)}">发布{$vo.name}</a></li>
                            <!--{/loop}-->
                        </ul>
                    </div>
                </li>
                <li>
                    <a href="javascript:;">{$userInfo.show_name}</a>
                    <div class="uk-navbar-dropdown">
                        <ul class="uk-nav uk-navbar-dropdown-nav">
                            <li><a href="{url('topics/User/index', ['id' => $userInfo.user_id])}">个人主页</a></li>
                            <li><a href="{url('topics/Setting/index')}">会员设置</a></li>
                            <li><a href="{url('topics/Setting/password')}">修改密码</a></li>
                            <li><a href="{url('topics/Login/logout')}">退出</a></li>
                        </ul>
                    </div>
                </li>
                <!--{/if}-->
            </ul>
        </div>
    </div>

</nav>
<br>
<main class="uk-container">
    {$layout}
</main>
<footer class=" dux-footer uk-text-center">
    <div class="uk-container">
        <p>© 2016 ~ 2018 {$site.info_name} Copyright, Inc. Licensed under <?php echo \dux\Dux::runTime(); ?>s</p>
    </div>
</footer>
</body>
<script>
    Do('base', function () {
        base.frame();
    });
</script>
</html>